package org.e_gold.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@NamedQueries({
        @NamedQuery(
                name = "findCookieByName",
                query = "from Cookie c where c.name = :name"
        )
})
@Entity
@Table(name = "cookie")
public class Cookie extends ValueObject implements Serializable {

    private static final long serialVersionUID = 1L;

    private String name;
    private String value;

    @Id
    @GeneratedValue
    private Long id;

    public Long getId() {

        return id;
    }

    public void setId(Long id) {

        this.id = id;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public String getValue() {

        return value;
    }

    public void setValue(String value) {

        this.value = value;
    }

}
